package allrobots.sendMessages.Register;

import t10086.Data.Map.TextCoordinate;
import t10086.Data.Robot.RobotType;
import t10086.Model.Messages.MessageType;

import java.io.Serializable;
import java.net.InetSocketAddress;

public class Registration implements Serializable {
    private RobotType role;
    private String serialNumber;
    private InetSocketAddress listenedSocket;
    private TextCoordinate position;

    public Registration(RobotType role, String serialNumber, InetSocketAddress listenedSocket,TextCoordinate position) {
        this.role = role;
        this.serialNumber = serialNumber;
        this.listenedSocket = listenedSocket;
        this.position=position;
    }

    public RobotType getRole() {
        return role;
    }

    public void setRole(RobotType role) {
        this.role = role;
    }

    public String getSerialNumber() {
        return serialNumber;
    }

    public void setSerialNumber(String serialNumber) {
        this.serialNumber = serialNumber;
    }

    public InetSocketAddress getListenedSocket() {
        return listenedSocket;
    }

    public TextCoordinate getPosition() {
        return position;
    }

    public void setPosition(TextCoordinate position) {
        this.position = position;
    }

    public void setListenedSocket(InetSocketAddress listenedSocket) {
        this.listenedSocket = listenedSocket;
    }
}
